import request from "./request";

// 登录
export const login = (params) => {
    return request({
        url: "/login",
        method: 'POST',
        data: params
    })
}

// 获取用户信息
export const getUserInfo = () => {
    return request({
        url: "/login/userinfo",
        method: 'GET'
    })
}

export default {
    login, getUserInfo
}